package utility

import (
	"strings"
)

type ArgKeyValue struct {
	Source string
	Output string
}


func GetArgKeyValues(args []string) ArgKeyValue {
	var argvalues ArgKeyValue
	for index,value := range args{
		if index != 0 {

			keyvaluePair:= strings.Split(value,"=")
			key := strings.Replace(keyvaluePair[0],"--","",-1)
			switch key {
			case "file":
				argvalues.Source = keyvaluePair[1]
			case "out":
				argvalues.Output = keyvaluePair[1]
			}
		}
	}
	return argvalues


	return argvalues
}
